package com.xjggb.cloud.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.client.RestTemplate;

@RestController
public class OrdeController {
    public  static  final String URL="http://cloud-provider-payment8004";

    @Autowired
    private RestTemplate restTemplate;

    @RequestMapping("/consumer/payment/zk")
    public String show(){
        String object = restTemplate.getForObject(URL+"/payment/zk", String.class);
        return object;
    }


}
